﻿@using System.Web.Providers.Entities
@using BLL
@model List<Web.Models.AmericanQuestion>
@{
    ViewBag.Title = "About Us";
}
<section class="content">
<h2>Results</h2>
<p>
 
 @if (@Model.Count > 0)
 {
    <h2>Total @Model.Count Answered questions by: @User.Identity.ToString()</h2>
  <ol>
 
  @foreach (var a in @Model)
  {
      <li>
      Question:@a.Question > Result :    
      @if (@a.IsCorect)
      {
        <span style="color: green;font-weight: bold">Well Done! Correct Answer</span>          
      }
      else
      {
        <span style="color: red;font-weight: bold">You hadn't reached success this time! Wrong Answer</span>          
      }        
      </li>
  }
    </ol>
 }
 else
 {
    <h2>Results are on Their Way We are working on It</h2>
 }

</p>
</section>
